package com.jxl.common.enums;

import javax.security.auth.Subject;

/**
 * 题目类型
 */
public enum SubjectTypeEnum {

    RADIO(1,"单选"),
    MULTIPLE(2,"多选"),
    JUDGE(3,"判断"),
    BRIEF(4,"简答");

    private int code;

    private String msg;

    SubjectTypeEnum(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public static SubjectTypeEnum getCode(int type){
        for (SubjectTypeEnum subjectTypeEnum:SubjectTypeEnum.values()) {
            if (subjectTypeEnum.code==type){
                return subjectTypeEnum;
            }
        }
        return null;
    }
}
